import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入 element UI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

// 引入echarts
import echarts from 'echarts'

// 引入vue-amap
import VueAMap from 'vue-amap';
Vue.config.productionTip = false
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false
Vue.use(VueAMap);

// 初始化vue-amap
VueAMap.initAMapApiLoader({
  // 高德的key
  key: '3518700f6d9aa6d50d8900e315debe7b',
  // 插件集合
  plugin: ['AMap.Driving','AMap.Geolocation','AMap.Autocomplete',
    'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar',
    'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  // 高德 sdk 版本，默认为 1.4.4
  v: '1.4.4'
});

Vue.use(ElementUI);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
